﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace SwyishChess.DesktopUI
{
    /// <summary>
    /// Interaction logic for PawnPromotionWindow.xaml
    /// </summary>
    public partial class PawnPromotionWindow : Window
    {
        public PawnPromotionWindow()
        {
            InitializeComponent();
            ComboBoxUpgradables.Items.Add("Queen");
            ComboBoxUpgradables.Items.Add("Rook");
            ComboBoxUpgradables.Items.Add("Bishop");
            ComboBoxUpgradables.Items.Add("Knight");
            ComboBoxUpgradables.SelectedIndex = 0;

            // Place the window in the middle of screen
            WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
        }

        private void buttonUpgrade_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
        }
    }
}
